@import "@/style/scss/index.scss";

.dialog-wrapper {
  width: 100%;
  height: 100%;
  position: fixed;
  //background: rgba(0, 0, 0, 0.2);
  z-index: 99;
  top: 0;
  left: 0;
  .dialog-body {
    background: black;
    box-shadow: 0px 49px 110px 21px rgba(76, 155, 243, 0.31);
    position: relative;
    margin: auto;
    min-height: 180px;
    min-width: 320px;
    &.active {
      width: 100%;
      height: 100%;
      margin: 0;
    }
    .dialog-content {
      .image-box {
        width: 100%;
        height: 100%;
        img {
          max-width: 100%;
          max-height: 100%;
          margin: auto;
          top: 0;
          bottom: 0;
          left: 0;
          right: 0;
          position: absolute;
          object-fit: contain;
        }
      }
      .video-box {
        width: 100%;
        height: 100%;
        .video-player {
          max-width: 100%;
          max-height: 100%;
          margin: auto;
          top: 0;
          bottom: 0;
          left: 0;
          right: 0;
          position: absolute;
          &.active {
            width: 100%;
            height: 100%;
            object-fit:fill
          }
        }
      }
    }
    .button-bar {
      margin: 20px 20px auto auto;
      right: 0;
      position: absolute;
      .zoom-button {
        width: 40px;
        height: 40px;
        margin-right: 20px;
        img {
          width: 40px;
          height: 40px;
        }
      }
      .close-button {
        width: 40px;
        height: 40px;
        img {
          width: 40px;
          height: 40px;
        }
      }
    }
  }
}
